package com.winhxd.b2c.common.domain.order.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author zhangshuguang
 * @version 1.0
 * @date 2019/1/8、15:20
 * @Description
 */
@Data
@ApiModel("订单信息")
public class OrderInfoVO {
    private static final long serialVersionUID = -2960449858467596227L;
    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "订单编号")
    @Excel(name = "订单编码", width = 20)
    private String orderNo;

    @ApiModelProperty(value = "订单用户id")
    private Long customerId;

    @ApiModelProperty(value = "一级分销商id")
    private Long firstAgent;

    @ApiModelProperty(value = "二级分销商id")
    private Long twoAgent;

    @ApiModelProperty(value = "订单总金额")
    private BigDecimal totalMoney;

    @ApiModelProperty(value = "订单实付金额")
    private BigDecimal otherTotal;

    @ApiModelProperty(value = "订单优惠金额")
    private BigDecimal discount;

    @ApiModelProperty(value = "支付方式 1 微信")
    private int payType;

    @ApiModelProperty(value = "订单状态 1 待付款 2 已取消 3待发货 4待收货5已收货 6已完成 7已关闭")
    private int status;

    @ApiModelProperty(value = "支付状态 1 成功 2 失败")
    private int payStatus;

    @ApiModelProperty(value = "订单创建时间")
    private Date created;

    @ApiModelProperty(value = "支付时间")
    private Date payTime;

    @ApiModelProperty(value = "收货时间")
    private Date receiveTime;

    @ApiModelProperty(value = "发货时间")
    private Date sendTime;

    @ApiModelProperty(value = "关闭时间")
    private Date closeTime;
    @ApiModelProperty(value = "完成时间")
    private Date completeTime;

    @ApiModelProperty(value = "描述")
    private String remarks;

    @ApiModelProperty(value = "更新时间")
    private Date updated;

    @ApiModelProperty(value = "订单自动关闭时间")
    private Long autoCloseMinute;

    @ApiModelProperty(value = "订单自动收货时间")
    private Long autoReceiveDay;

    @ApiModelProperty(value = "预估收益")
    private BigDecimal estimateProfit;

    @ApiModelProperty(value = "实际收益")
    private BigDecimal actualProfit;

    @ApiModelProperty(value = "预估总积分")
    private Long estimateIntegral;

    @ApiModelProperty(value = "实际总积分")
    private Long actualIntegral;

    @ApiModelProperty(value = "折算价")
    private BigDecimal conversionPrice;

    @ApiModelProperty(value = "配送费")
    private BigDecimal deliveryPrice;

    @ApiModelProperty(value = "创建人")
    private String createdBy;

    @ApiModelProperty(value = "更新人")
    private String updatedBy;

    @ApiModelProperty(value = "店铺名称")
    private String storeName;

    @ApiModelProperty(value = "店铺Id")
    private Long storeId;

    @ApiModelProperty(value = "服务器时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(locale="zh", timezone="GMT+8",pattern="yyyy-MM-dd HH:mm:ss")
    private Date serviceTime;
    @ApiModelProperty(value = "是否到达自动确认收货时间 0 未到达 1 已到达")
    private Integer autoReceiveStatus;
    @ApiModelProperty(value = "订单详情")
    private List<OrderDetailVO> orderDetailVOList;
    @ApiModelProperty(value = "收发货人信息")
    private List<OrderConsigneeMessageVO> orderConsigneeMessage;
    @ApiModelProperty(value = "待发货订单退款售后信息")
    private OrderInfoAfterSaleVO orderAfterSale;
    @ApiModelProperty(value = "订单发货物流信息")
    private OrderExpressInfoVO orderExpressInfo;

}
